package com.xomily.devops.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xomily.common.annotation.Excel;
import com.xomily.common.core.domain.BaseEntity;

/**
 * 网络IO运维日志对象 dev_net
 * 
 * @author xomily
 * @date 2021-11-29
 */
public class DevNet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 主机ip地址 */
    @Excel(name = "主机ip地址")
    private String ip;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** mac地址 */
    @Excel(name = "mac地址")
    private String macaddr;

    /** ip4地址 */
    @Excel(name = "ip4地址")
    private String ip4addr;

    /** ip6地址 */
    @Excel(name = "ip6地址")
    private String ip6addr;

    /** RXPCK */
    @Excel(name = "RXPCK")
    private Long rxpck;

    /** TXPCK */
    @Excel(name = "TXPCK")
    private Long txpck;

    /** RXBYT */
    @Excel(name = "RXBYT")
    private Long rxbyt;

    /** TXBYT */
    @Excel(name = "TXBYT")
    private Long txbyt;

    /** RX错误数 */
    @Excel(name = "RX错误数")
    private Long rxerr;

    /** TX错误数 */
    @Excel(name = "TX错误数")
    private Long txerr;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMacaddr(String macaddr) 
    {
        this.macaddr = macaddr;
    }

    public String getMacaddr() 
    {
        return macaddr;
    }
    public void setIp4addr(String ip4addr) 
    {
        this.ip4addr = ip4addr;
    }

    public String getIp4addr() 
    {
        return ip4addr;
    }
    public void setIp6addr(String ip6addr) 
    {
        this.ip6addr = ip6addr;
    }

    public String getIp6addr() 
    {
        return ip6addr;
    }
    public void setRxpck(Long rxpck) 
    {
        this.rxpck = rxpck;
    }

    public Long getRxpck() 
    {
        return rxpck;
    }
    public void setTxpck(Long txpck) 
    {
        this.txpck = txpck;
    }

    public Long getTxpck() 
    {
        return txpck;
    }
    public void setRxbyt(Long rxbyt) 
    {
        this.rxbyt = rxbyt;
    }

    public Long getRxbyt() 
    {
        return rxbyt;
    }
    public void setTxbyt(Long txbyt) 
    {
        this.txbyt = txbyt;
    }

    public Long getTxbyt() 
    {
        return txbyt;
    }
    public void setRxerr(Long rxerr) 
    {
        this.rxerr = rxerr;
    }

    public Long getRxerr() 
    {
        return rxerr;
    }
    public void setTxerr(Long txerr) 
    {
        this.txerr = txerr;
    }

    public Long getTxerr() 
    {
        return txerr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("name", getName())
            .append("macaddr", getMacaddr())
            .append("ip4addr", getIp4addr())
            .append("ip6addr", getIp6addr())
            .append("rxpck", getRxpck())
            .append("txpck", getTxpck())
            .append("rxbyt", getRxbyt())
            .append("txbyt", getTxbyt())
            .append("rxerr", getRxerr())
            .append("txerr", getTxerr())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
